﻿/* 点卷商店 */

var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "#e#r本服特殊的专属VIP勋章系统，点击升级可以查看的如何升级，还有奖励丰富的每日VIP礼包，后期还会开放各种特权。\r\n\r\n#bVIP1#r奖励#l\r\n#k每日5000点卷#v2049116#*5张#v2340000#*20张#v5064000#*10张#v5062500#*10个#v5062009#*10个#v4310210#*5个#v1142538#金币200W\r\n\r\n#bVIP2#r奖励#l\r\n#k每日20000点卷#v2049116#*10张#v2340000#*30张#v5064000#*15张#v5062500#*20个#v5062009#*20个#v4310210#*20个#v1142539#金币500W\r\n\r\n#bVIP3#r奖励#l\r\n#k每日50000点卷#v2049116#*15张#v2340000#*40张#v5064000#*20张#v5062009#*30个#v5062500#*30个#v4310210#*50个#v1142540#金币1000W\r\n\r\n#bVIP4#r奖励#l\r\n每日#b100000点卷#v2049116#*20张#v2340000#*50张#v5064000#*30个#v5062009#*40个#v5062500#*40个#v4310210#*80个#v1142541#金币2000W\r\n\r\n#bVIP5#r奖励#l\r\n每日#b200000点卷#v2049116#*30张#v2340000#*50张#v5064000#*30个#v5062009#*50个#v5062500#*50个#v5062024#*5个#v4310210#*100个#v1143000#金币5000W\r\n\r\n#bVIP6#r奖励#l\r\n每日#b300000点卷#v2430210#*1#v2049116#*30张#v2340000#*50张#v5064000#*30个#v5062009#*70个#v5062500#*70个#v5062024#*10个#v4310210#*200个#v1142404#金币8000W\r\n\r\n#bVIP7#r奖励#l\r\n每日#b500000点卷#v1712000#*1#v2430210#*3#v2049116#*50张#v2340000#*50张#v5064000#*30个#v5062009#*90个#v5062500#*90个#v5062024#*20个#v4310210#*400个#v1142404#金币1E";
     //#b#L8#购买绝版宠物#l#L14#购买酷炫骑宠#l

        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(9330006); //双倍道具
            break;
        case 4:
            cm.dispose();
            cm.openNpc(9310074, 3); //暴君
            break;
        case 5:
            cm.dispose();
            cm.openNpc(9310074, 2); //各种椅子
            break;
        case 6:
            cm.dispose();
            cm.openNpc(9900002, 15); //各种喇叭
            break;
        case 7:
            cm.dispose();
            cm.openNpc(9900002, 16); //洗点卷轴
            break;
        case 8:
            cm.dispose();
            cm.openNpc(9900002, 24); //玩具商店
            break;
        case 9:
            cm.dispose();
            cm.openNpc(9110103); //骑宠商店
            break;
	case 10:
            cm.dispose();
            cm.openNpc(9110114); //破攻石头
            break;
	case 11:
            cm.dispose();
            cm.openNpc(9900002, 5); //一键潜能
            break;
	case 12:
            cm.dispose();
            cm.openNpc(9900002, 1301); //一键潜能
            break;
	case 13:
            cm.dispose();
            cm.openNpc(9270096, 13); //一键潜能
            break;
	case 14:
            cm.dispose();
            cm.openNpc(9900002, 1301); //一键潜能
            break;
	case 15:
            cm.dispose();
            cm.openNpc(9270096, 15); //一键潜能
            break;
        }
    }
}